// ---- Created with 3Dmigoto v1.3.16 on Fri Jul 10 05:34:36 2020

cbuffer _Globals : register(b0)
{
  float4x4 WorldView : packoffset(c0);
  float4x4 WorldViewProjection : packoffset(c4);
  float4 MaterialColor : packoffset(c8) = {1,1,1,1};
  float AlphaThreshold : packoffset(c9) = {0.00100000005};
}

SamplerState TextureSamplerSampler_s : register(s0);
Texture2D<float4> TextureSampler : register(t0);


// 3Dmigoto declarations
#define cmp -
Texture1D<float4> IniParams : register(t120);
Texture2D<float4> StereoParams : register(t125);


void main(
  float4 v0 : SV_POSITION0,
  float4 v1 : COLOR0,
  float2 v2 : TEXCOORD0,
  out float4 o0 : SV_TARGET0)
{
  float4 r0,r1;
  uint4 bitmask, uiDest;
  float4 fDest;
  
  float4 iniParams = IniParams.Load(0); 
  if (iniParams.x == 1) {discard;}

  r0.xyzw = TextureSampler.Sample(TextureSamplerSampler_s, v2.xy).xyzw;
  r1.x = v1.w * r0.w + -AlphaThreshold;
  r0.xyzw = v1.xyzw * r0.xyzw;
  o0.xyzw = r0.xyzw;
  r0.x = cmp(r1.x < 0);
  if (r0.x != 0) discard;
  return;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Generated by Microsoft (R) HLSL Shader Compiler 10.1
//
//   using 3Dmigoto v1.3.16 on Fri Jul 10 05:34:36 2020
//
//
// Buffer Definitions:
//
// cbuffer $Globals
// {
//
//   float4x4 WorldView;                // Offset:    0 Size:    64 [unused]
//   float4x4 WorldViewProjection;      // Offset:   64 Size:    64 [unused]
//   float4 MaterialColor;              // Offset:  128 Size:    16 [unused]
//      = 0x3f800000 0x3f800000 0x3f800000 0x3f800000
//   float AlphaThreshold;              // Offset:  144 Size:     4
//      = 0x3a83126f
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// TextureSamplerSampler             sampler      NA          NA    0        1
// TextureSampler                    texture  float4          2d    0        1
// $Globals                          cbuffer      NA          NA    0        1
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_POSITION              0   xyzw        0      POS   float
// COLOR                    0   xyzw        1     NONE   float   xyzw
// TEXCOORD                 0   xy          2     NONE   float   xy
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_TARGET                0   xyzw        0   TARGET   float   xyzw
//
ps_4_0
dcl_constantbuffer cb0[10], immediateIndexed
dcl_sampler s0, mode_default
dcl_resource_texture2d (float,float,float,float) t0
dcl_input_ps linear v1.xyzw
dcl_input_ps linear v2.xy
dcl_output o0.xyzw
dcl_temps 2
sample r0.xyzw, v2.xyxx, t0.xyzw, s0
mad r1.x, v1.w, r0.w, -cb0[9].x
mul r0.xyzw, r0.xyzw, v1.xyzw
mov o0.xyzw, r0.xyzw
lt r0.x, r1.x, l(0.000000)
discard_nz r0.x
ret
// Approximately 7 instruction slots used

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
